/**
 * 404 Not Found handler middleware
 */
const notFoundHandler = (req, res) => {
  res.status(404).json({
    error: {
      status: 404,
      message: 'Resource not found',
      path: req.originalUrl,
      method: req.method,
    },
  });
};

module.exports = notFoundHandler;